package com.cn.chaomeng.vo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author LYJ
 * Created by Administrator on 2017/12/20 0020.
 */
public class AjaxError {
    private final static Logger logger = LoggerFactory.getLogger(AjaxError.class);

    private int recode = 0;

    private String error;

    public boolean isTrue(){
        return recode == 0;
    }

    public void setError(int recode, String error){
        this.recode = recode;
        this.error = error;
    }

    public static Logger getLogger() {
        return logger;
    }

    public int getRecode() {
        return recode;
    }

    public void setRecode(int recode) {
        this.recode = recode;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
